package org.example.design.adapter.objectadapter;

import org.example.design.adapter.Target;
import org.example.design.adapter.classadapter.Adaptee;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

/**
 * @author huangshen
 * @version 0
 * @description ObjectAdapter
 * @since 2022/2/3 0:23
 */
public class ObjectAdapter implements Target {

    private final Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        adaptee.specificRequest();
    }

}
